import React, { Component } from 'react'
import './App.css'
import axios from 'axios'
import MusicItem from './components/MusicItem'
export default class App extends Component {
  constructor(props){
    super(props);
    this.state = {
      child:"music",
      movies:[]
    }
  }
  render() {
    return (
      <div className="test">
         hello world
         <MusicItem  data={this.state.child}></MusicItem>
      </div>
    )
  }
  componentDidMount(){
    axios.get("http://localhost:8000/top250").then(res=>{
      console.log(res)
    })
  }
}

